<?php
/**
 * @var \yii\web\View $this
 * @var $inpuiries array
 */
use kartik\form\ActiveForm;
use yii\bootstrap\Html;
use wodrow\yii2wtools\tools\JsBlock;
use yii\helpers\Url;
use common\Tools;
use kartik\detail\DetailView;
$fzt = Yii::$app->fenZhangTong;
$attributes = [];
foreach ($inpuiries as $k => $v) {
    $group = [
        'group' => true,
        'label' => $fzt->getIESI111018AcctTypeDesc()[$v['acctType']],
        'rowOptions'=>['class'=>'table-info']
    ];
    $columns = [];
    foreach ($v as $k1 => $v1) {
        if (in_array($k1, $fzt->getIESI111018RespMoneyArr())) {
            $column = [
                'label' => $fzt->getIESI111018RespMoneyDesc()[$k1],
                'value' => $v1,
            ];
            $columns[] = $column;
        }
    }
    $attributes[] = $group;
    $attributes[]['columns'] = $columns;
}
?>

<div>
    <div class="row">
        <div class="col-xs-12">
            <?=DetailView::widget([
                'model' => new \yii\base\Model(),
                'attributes' => $attributes,
            ]) ?>
        </div>
    </div>
</div>
